﻿
              @{
                  Onlyle.Models.GaoXiaoListModel ListModel = Model;
                  List<Onlyle.Model.E_GaoXiao_Article> ArticleList = ListModel.ArticleList;
                  string picPath = "http://uimg.fotoat.com/pic/gaoxiao/" + ViewBag.Type + "/{0}/{1}";
               }

<div class="wrap">
        	<div class="container">
                <section>
                	<div class="row">
                    	<div class="span6 offset1">
                            @for (int i = 0; i < ArticleList.Count; i++)
                            {
                                string imgPath = "";
                                imgPath = @ArticleList[i].GaoXiao_ImgAddress == "blank" ? "http://uimg.fotoat.com/pic/blank.gif" : string.Format(picPath, Convert.ToDateTime(ArticleList[i].GaoXiao_ContentFromDate).ToString("yyyy-MM-dd"), ArticleList[i].GaoXiao_ImgAddress)+".jpg";
                                <div class="post">
                                    <h2 class="title"><span><a target="_blank" href="~/gaoxiao/detail/@ArticleList[i].GaoXiao_PK">@ArticleList[i].GaoXiao_ContentTitle</a></span></h2>
                                    <p>@ArticleList[i].GaoXiao_Content</p>
                                    @if (ArticleList[i].GaoXiao_ImgAddress_Y.Length > 0)
                                    {
                                        //string value = ArticleList[i].GaoXiao_ImgAddress_Y;
                                        //System.Text.RegularExpressions.Regex r = new System.Text.RegularExpressions.Regex("title=\".*\"");
                                        //System.Text.RegularExpressions.Match m = r.Match(value);
                                        //if(m.Success)
                                        //{
                                        //    ViewContext.Writer.Write(value.Replace(m.Value, "title=\"" + ArticleList[i].GaoXiao_ContentTitle + "\""));
                                        //}
                                        //else
                                        //{
                                        //    ViewContext.Writer.Write(value);
                                        //}
                                        imgPath = ArticleList[i].GaoXiao_ImgAddress_Y;
                                        if (imgPath == "blank")
                                        {
                                            imgPath = "http://uimg.fotoat.com/pic/blank.gif";
                                        }
                                    }
                                    
                                    <img  src="@imgPath" alt="@ArticleList[i].GaoXiao_ContentTitle" />
                                    
                                    <div class="post_info">
                                	    <div class="fleft">来源: <span>@ArticleList[i].GaoXiao_ContentFrom</span> / By @ArticleList[i].GaoXiao_ContentFromDate / Tags <span>@Onlyle.Business.Common.GetGaoXiaoType(ArticleList[i].GaoXiao_Type)</span></div>
                                        <div class="fright" style="padding-top:5px">
                                             @RenderPage("~/Views/Shared/_share_litter.cshtml", new { sharttitle = ArticleList[i].GaoXiao_ContentTitle,
                                            sharturl = "http://www.onlyle.com/gaoxiao/detail/" + ArticleList[i].GaoXiao_PK, shartpic = imgPath })
                                        </div>                                    
                                	    <div class="clear"></div>
                                    </div>
                                </div>
                            }
                            @RenderPage("~/Views/Shared/_Pagination.cshtml")
                        </div>
                    	<div class="span4">
                        	<div class="sidebar">
                            	
                                @RenderPage("~/Views/Shared/_XingZuo.cshtml")
                                
                         @*<script type="text/javascript" src="http://ext.weather.com.cn/52899.js"></script>*@
                                @RenderPage("~/Views/Shared/_gaoxiao_tag.cshtml") 
                            				<script type="text/javascript">
                            				    document.write('<a style="display:none!important" id="tanx-a-mm_41220300_4406969_14738906"></a>');
                            				    tanx_s = document.createElement("script");
                            				    tanx_s.type = "text/javascript";
                            				    tanx_s.charset = "gbk";
                            				    tanx_s.id = "tanx-s-mm_41220300_4406969_14738906";
                            				    tanx_s.async = true;
                            				    tanx_s.src = "http://p.tanx.com/ex?i=mm_41220300_4406969_14738906";
                            				    tanx_h = document.getElementsByTagName("head")[0];
                            				    if(tanx_h)tanx_h.insertBefore(tanx_s,tanx_h.firstChild);
                            				    </script>
                            </div>                             
                        </div>   
                                  	
                	</div>
                    
                </section>
            </div>

        </div>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1852680" charset="utf-8"></script>
<script type="text/javascript">
    $(".sidebar").pin({
        containerSelector: ".container"
    })
    var tag = '@Request.RequestContext.RouteData.Values["action"]';
        $("#tages a").each(function(){
            $(this).removeClass("tagesClass");
                if ($(this).attr("href").indexOf(tag) > 0) {
                    $(this).addClass("tagesClass");
                }
        })
        var jiathis_config = {

        }
     function setShare(title, url,pic) {
          jiathis_config.title = title;
          jiathis_config.url = url;
          jiathis_config.summary = '--onlyle.com';
          jiathis_config.pic = pic;
       }
     
 
</script>



